#ifndef IMGWIDGET_H
#define IMGWIDGET_H

#include <QWidget>
#include <QRgb>

class ThreadManager;

namespace image_param{
const int imageWidth = 576;
const int imageHeight = 432;
}

class IMGWIDGET:public QWidget{
    Q_OBJECT

public:
    QRgb pixels[image_param::imageWidth*image_param::imageHeight];
    ThreadManager* manager;
    IMGWIDGET(ThreadManager* m,QWidget* parent = 0);
    ~IMGWIDGET();
    void paintEvent(QPaintEvent*);
};

#endif // IMGWIDGET_H
